import { panelsApi } from './api'
import axios from 'axios'

export default {
  getActives() {
    return axios({
      method: 'get',
      url: panelsApi.getActivesUrl(),
      withCredentials: true
    })
  },
  getFuncsDateType(datetype) {
    return axios({
      method: 'get',
      url: panelsApi.getFuncsDateTypeUrl(datetype),
      withCredentials: true
    })
  },
  getFuncsStartend(paramsStr) {
    return axios({
      method: 'get',
      url: panelsApi.getFuncsStartendUrl(paramsStr),
      withCredentials: true
    })
  }
}
